<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>生成方案管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <h5>报表区域字段列表 </h5>
        </div>
        <div class="ibox-content">

            <sys:message content="${message}"/>

            <!-- 查询条件 -->
            <div class="row">
                <div class="col-sm-12">
                    <form:form id="searchForm" modelAttribute="genScheme" action="${ctx}/gen/genScheme/" method="post" class="breadcrumb form-search">
                        <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                        <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                        <label>方案名称 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
                        &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                    </form:form>
                </div>
            </div>

            <!-- 工具栏 -->
            <div class="row">
                <div class="col-sm-12">
                    <div class="pull-left">
                        <shiro:hasPermission name="gen:genScheme:edit">
                        <button class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="left" onclick="add()"
                                title="添加"><i class="fa fa-plus"></i> 添加
                        </button>
                        </shiro:hasPermission>

                        <script type="text/javascript">
                            function add() {
                                window.location = "${ctx}/gen/genScheme/form";
                            }
                        </script>

                        <button class="btn btn-white btn-sm " data-toggle="tooltip" data-placement="left"
                                onclick="sortOrRefresh()" title="刷新"><i class="fa fa-repeat"></i> 刷新
                        </button>
                    </div>
                    <div class="pull-right">
                        <button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()"><i
                                class="fa fa-search"></i> 查询
                        </button>
                        <button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="reset()"><i
                                class="fa fa-refresh"></i> 重置
                        </button>
                    </div>

                    <br>
                </div>
            </div>

            <table id="contentTable" class="table table-striped table-bordered table-condensed">
                <thead><tr><th>方案名称</th><th>生成模块</th><th>模块名</th><th>功能名</th><th>功能作者</th><shiro:hasPermission name="gen:genScheme:edit"><th>操作</th></shiro:hasPermission></tr></thead>
                <tbody>
                <c:forEach items="${page.list}" var="genScheme">
                    <tr>
                        <td><a href="${ctx}/gen/genScheme/form?id=${genScheme.id}">${genScheme.name}</a></td>
                        <td>${genScheme.packageName}</td>
                        <td>${genScheme.moduleName}${not empty genScheme.subModuleName?'.':''}${genScheme.subModuleName}</td>
                        <td>${genScheme.functionName}</td>
                        <td>${genScheme.functionAuthor}</td>
                        <shiro:hasPermission name="gen:genScheme:edit"><td>
                            <a href="${ctx}/gen/genScheme/form?id=${genScheme.id}">修改</a>
                            <a href="${ctx}/gen/genScheme/delete?id=${genScheme.id}" onclick="return confirmx('确认要删除该生成方案吗？', this.href)">删除</a>
                        </td></shiro:hasPermission>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

            <table:page page="${page}"></table:page>
        </div>
    </div>
</div>
	<%--<ul class="nav nav-tabs">--%>
		<%--<li class="active"><a href="${ctx}/gen/genScheme/">生成方案列表</a></li>--%>
		<%--<shiro:hasPermission name="gen:genScheme:edit"><li><a href="${ctx}/gen/genScheme/form">生成方案添加</a></li></shiro:hasPermission>--%>
	<%--</ul>--%>
	<%--<form:form id="searchForm" modelAttribute="genScheme" action="${ctx}/gen/genScheme/" method="post" class="breadcrumb form-search">--%>
		<%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
		<%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
		<%--<label>方案名称 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>--%>
		<%--&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>--%>
	<%--</form:form>--%>
	<%--<sys:message content="${message}"/>--%>
	<%--<table id="contentTable" class="table table-striped table-bordered table-condensed">--%>
		<%--<thead><tr><th>方案名称</th><th>生成模块</th><th>模块名</th><th>功能名</th><th>功能作者</th><shiro:hasPermission name="gen:genScheme:edit"><th>操作</th></shiro:hasPermission></tr></thead>--%>
		<%--<tbody>--%>
		<%--<c:forEach items="${page.list}" var="genScheme">--%>
			<%--<tr>--%>
				<%--<td><a href="${ctx}/gen/genScheme/form?id=${genScheme.id}">${genScheme.name}</a></td>--%>
				<%--<td>${genScheme.packageName}</td>--%>
				<%--<td>${genScheme.moduleName}${not empty genScheme.subModuleName?'.':''}${genScheme.subModuleName}</td>--%>
				<%--<td>${genScheme.functionName}</td>--%>
				<%--<td>${genScheme.functionAuthor}</td>--%>
				<%--<shiro:hasPermission name="gen:genScheme:edit"><td>--%>
    				<%--<a href="${ctx}/gen/genScheme/form?id=${genScheme.id}">修改</a>--%>
					<%--<a href="${ctx}/gen/genScheme/delete?id=${genScheme.id}" onclick="return confirmx('确认要删除该生成方案吗？', this.href)">删除</a>--%>
				<%--</td></shiro:hasPermission>--%>
			<%--</tr>--%>
		<%--</c:forEach>--%>
		<%--</tbody>--%>
	<%--</table>--%>
	<%--<div class="pagination">${page}</div>--%>
</body>
</html>
